Skip to content
  • 0 Votes
    5 Posts
    48 Views
    zboblamontZ
    @jvdk I agree with the point made by @evb , why would you want to wire connect the ultrasonic node rather than the usual radio connection ? You are adding levels of complexity and power demands for what reason ? My ultrasonic water tank node (pro-mini+rfm69) is now 2 years on the same 2xAA batteries sending in levels every hour (RTC), the only problem encountered - condensation forming a drip on the face of the ultrasonic head during very low temperatures.
  • 0 Votes
    3 Posts
    42 Views
    T
    @Boots33 Thanks a lot for the quick response. I now have my Nano running as a serial gateway and it is connected via a USB cable directly to my controller (Raspberry Pi 4 running Home Assistant / Hass.io). I added a local motion sensor to the Nano gateway HW and pasted the mysensors MotionSensor example code to the setup(), presentation() and loop() functions as well as to the definitions in the top of the GatewaySerial example code. I disabled the radio definitions as I currently have no radio capability in my gateway (not sure if this was necessary). In Home Assistant / Hass.io I updated the configuration.yaml with the following text (as described on the Home Assistant integration help): mysensors: gateways: - device: '/dev/ttyUSB0' And it works :) In Home Assistant Developer Tools under States I can now see my motion sensor go on and off by the flick of my hand. I had expected a bit more bumps on the road just to get this far, but wow - I am obviously walking in the foot prints of people who have worked hard to make it easy for the rest of us. I am sure I will hit bumps on the way when the radios have to send results to the gateway (thick concrete walls with lots of steel), but for now I will enjoy this big success. Thanks again Boots33
  • 2 Votes
    1 Posts
    81 Views
    No one has replied
  • VERA / Arduino Integration

    Vera vera arduino ethernet gateway
    4
    0 Votes
    4 Posts
    325 Views
    korttomaK
    @sparky60 yes, 4 inputs and 4 outputs. It should be easy to modify if you need a different amount.
  • 0 Votes
    9 Posts
    6k Views
    G
    Hi there, I'm resuming this old topic 'cause I'm trying to make a dockerized version of MySensors gateway, built on a debian image. It compiles easily, but I'm stuck on transport initialization. No one tried it? Since I'm quite new to this, I can't give now a github link, but I'll do ASAP, so we can collaborate on this.
  • 0 Votes
    16 Posts
    7k Views
    M
    @cadet I'm no expert but I would have looked at the data sheet and measured up to make sure that the hardware are not defective in any way. http://ww1.microchip.com/downloads/en/DeviceDoc/39662c.pdf Or the radio. //Mattias
  • MQTT-Gateway - some questions

    Troubleshooting softspi ethernet gateway
    2
    0 Votes
    2 Posts
    915 Views
    TheoLT
    @blebbens It's been a while. But if I remeber it correctly you have to set #define SOFTSPI in MyConfig.h too. Don't forget to comment it back when you're compiling a sketch for a node. My router uses DHCP as well. But I can assign a static IP in the sketch. Shouldn't be a problem. I'm not sure, but I think the arduino can't handle DHCP, it's a really simple ethernet card. So you need to assign an IP in the sketch.
  • 0 Votes
    6 Posts
    1k Views
    alexsh1A
    In this case I do not understand. Perhaps, @hek is right. I have updated a few nodes to v2, but the GW was still v1.5.2 The problem is that I do want signing and with all debug options, I just cannot get 36Kb compiled on my Arduino Uno (GW).
  • Ethernet Gateway

    General Discussion ethernet gateway
    4
    0 Votes
    4 Posts
    2k Views
    D
    Hi . Here is my example .. working with my code for Relay board 32 relay by I2C IO expander. #include <MySensor.h> #include <SPI.h> // Define version #define VSN "v1.0" // Define Name #define NAME "Test" // Define Sensor - button #define BLU 1 // Button Left Up #define BLD 2 // Button Left Down #define BRU 3 // Button Right Up #define BRD 4 // Button Right Down // Sensor objects MySensor gw; void setup() { // eeprom_write_byte((uint8_t*)EEPROM_NODE_ID_ADDRESS, (byte)255); gw.begin(incomingMessage,AUTO); // Node ID auto .. if not used gateway , Node ID must define manualy gw.sendSketchInfo( NAME, VSN ); // Name and version gw.present(BLU, S_LIGHT); gw.present(BLD, S_LIGHT); gw.present(BRU, S_LIGHT); gw.present(BRD, S_LIGHT); } void loop() { gw.process(); } void incomingMessage(const MyMessage &message) { if (message.type == V_LIGHT) { MyMessage response (message.getByte(),V_LIGHT) ; // message.getByte() = payload define what relay want change state response.setDestination(1); // My Relay Board gw.send(response); } }```

29

Online

11.7k

Users

11.2k

Topics

113.1k

Posts